from chatterbot import ChatBot
from chatterbot.trainers import ListTrainer

# Create a new chat bot named Charlie
chatbot = ChatBot('Charlie')

trainer = ListTrainer(chatbot)

trainer.train([
    "Hi, can I help you?",
    "Sure, I'd like to book a flight to Iceland.",
    "what's your name?",
    "my name is china bot.",
    "my name is kim jun ki",
    "tell me detail name text"
])

while True:
    request=input('我:')
# Get a response to the input text 'I would like to book a flight.'
    response = chatbot.get_response(request)
    print('CAR Bot: ',response)
